package cn.com.dingtek.genius.manager.server.config;

//import com.iotplatform.client.NorthApiClient;
//import com.iotplatform.client.NorthApiException;
//import com.iotplatform.client.dto.ClientInfo;
//import com.iotplatform.client.invokeapi.Authentication;
//import com.iotplatform.client.invokeapi.DeviceManagement;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IotConfig {
//    @Value("${iot.platformIp}")
//    private String platformIp;
//    @Value("${iot.platformPort}")
//    private String platformPort;
//    @Value("${iot.appId}")
//    private String appId;
//    @Value("${iot.secret}")
//    private String secret;
//
//
//    @Bean
//    public ClientInfo clientInfo() {
//        ClientInfo bean = new ClientInfo();
//        bean.setPlatformIp(platformIp);
//        bean.setPlatformPort(platformPort);
//        bean.setAppId(appId);
//        bean.setSecret(secret);
//        return bean;
//    }
//
//    @Bean
//    public NorthApiClient northApiClient(ClientInfo clientInfo) throws NorthApiException {
//        NorthApiClient bean = new NorthApiClient();
//        bean.setClientInfo(clientInfo);
//        bean.initSSLConfig();
//        return bean;
//    }
//
//    @Bean
//    public DeviceManagement deviceManagement(NorthApiClient northApiClient) {
//        DeviceManagement bean = new DeviceManagement(northApiClient);
//        return bean;
//    }
//
//    @Bean
//    public Authentication authentication(NorthApiClient northApiClient) {
//        Authentication bean = new Authentication(northApiClient);
//        return bean;
//    }
}
